package com.ehome.mobile.utils;

/**
 * Classe com as contantes da aplicação
 * 
 * @author Silas M. Ferreira
 * 
 */
public abstract class Constants {
	
	//Conexão com o Web Service (SOAP)
	public static final String NAMESPACE = "http://ws/";
	public static final String SOAP_ACTION = "";
	
	//Conexão com o Web Service (REST)
	public static final String URL = "http://192.168.0.11:8080/EHomeWebApplication/webresources";

	//Métodos do Web Service (SOAP)
	public static final String METHOD_GET_STATUS = "getStatus";
	public static final String METHOD_SET_STATUS = "setStatus";
	
	//Métodos do Web Service (REST)
	public static final String METHOD_LOGIN = "/services/usuario";
	
	//Erros do Web Service
	public static final String MSG_ERRO_SOAP = "O objeto SOAP está nulo!";
	public static final String MSG_ERRO_URL = "A URL está vazia!";
	public static final String MSG_ERRO_CHAMADA = "Erro na chamada do web service!";
	
	//Database
	public static final String DATABASE_NAME = "ehome_mobile.db";
    public static final Integer DATABASE_VERSION = 1;
    
    //Tabelas
    public static final String LOGIN_TABLE = "LOGIN";
    public static final String CONFIGURATIONS_TABLE = "CONFIGURATIONS";
    
    //Colunas
    public static final String COLUMN_ID = "ID";
    public static final String COLUMN_USERNAME = "USERNAME";
    public static final String COLUMN_PASSWORD = "PASSWORD";
    public static final String COLUMN_URL = "URL";
    public static final String COLUMN_EMAIL = "EMAIL";
}